This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Judy Asakigenader 8.Oct.03 12:56 AM a Web browser Domino DesignerAll ReleasesAll Platforms
Here's the scenario:
I have a form with a button that opens a DialogBox to another form. This code works fine when I open this form directly from it's own database. However, I need to create this form from a separate database. When I create the form from the other database, the button no longer works, I get the error "DialogBox cannot be used in this context; a document must be selected." The "doc" I am giving it definitely has a value, and all other functions seem to work fine. Any ideas?
I tried adding some ideas that I already saw in this forum, but to no avail.
Dim ws As New NotesUIWorkspace
Dim continue As Variant
Dim uidoc As notesuidocument
Set uidoc=ws.currentdocument
Dim doc As notesdocument
Set doc = uidoc.document
continue = ws.Dialogbox("PreAuthorizationCapture", True, True, False,False,False,False, "Pre-Authorization Wizard")
If Not continue Then
Exit Sub
End If